﻿using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

public class TestInspectorContext : MonoBehaviour
{
    [MenuItem("CONTEXT/Transform/SetPosition")]
    static void SetPositon(MenuCommand command) {
        Transform transform = command.context as Transform;
        if (transform != null) {
            transform.position += Vector3.one;
        }
    }
}
